<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<title>用户搜索</title>
		<link rel="stylesheet" type="text/css" href="css/style.css" />
		<script type="text/javascript" src="js/jquery.js"></script>
		<script type="text/javascript" charset="utf-8">
			$(function(){
				$("li:odd").css("background-color", "lightyellow");
				$("li:even").css("background-color", "lightgray");
			});
		</script>
	</head>
	<body>
		<ul>
			<c:forEach var="user" items="${sessionScope.users }">
			<li class="test"><img src="avatar/${user.avatar }" width="50"/> ${user.nick } <a href="follow?followid=${user.id }">加关注</a></li>
			</c:forEach>
		</ul>	
	</body>
</html>
